package com.bdqn.vueboot.entity;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 邮件服务(Mail)表实体类
 *
 * @author makejava
 * @since 2022-12-03 09:09:35
 */
@SuppressWarnings("serial")
@Data
public class Mail extends Model<Mail> {
    /**
     * 邮件id
     */
    @TableId(type = IdType.AUTO)
    private Long mailId;

    /**
     * 邮件物品描述
     */
    @TableField(value = "mail_DescriptionName")
    private String mailDescriptionName;

    /**
     * 邮寄类型
     */
    @TableField(value = "mail_Type")
    private Long mailType;

    /**
     * 邮寄数量
     */
    @TableField(value = "mail_Price")
    private Integer mailPrice;

    /**
     * 经办人Id
     */
    @TableField(value = "mail_PersonnelId")
    private Integer mailPersonnelId;
    /**
     * 发起时间
     */
    @TableField(value = "mail_StartData")
    private String mailStartData;

    /**
     * 处理人：部门表里的上级
     */
    @TableField(value = "mail_Superior")

    private Long mailSuperior;

    /**
     * 状态Id:连接状态表的Id
     */
    @TableField(value = "mail_Static")

    private String mailStatic;

    /**
     * 联系电话
     */
    @TableField(value = "mail_Phone")

    private Long mailPhone;

    /**
     * 快递单号
     */
    @TableField(value = "courier_Number")

    private String courierNumber;

    /**
     * 创建者
     */
    @TableField(fill = FieldFill.INSERT, value = "creation_Id")
    private Long creationId;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT, value = "creation_Time")
    private LocalDateTime creationTime;

    /**
     * 修改者
     */
    @TableField(fill = FieldFill.UPDATE, value = "update_Id")
    private Long updateId;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.UPDATE, value = "update_Time")
    private LocalDateTime updateTime;
    /**
     * 联系人
     */
    @TableField(value = "linkmanContacts")
    private String linkmanContacts;
    /**
     * 是否删除
     */
    @TableField(value = "isDel")
    private Long isDel;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    //部门名称
    @TableField(exist = false)
    String departmentName;
    @TableField(exist = false)
    SysUser sysUser;
    @TableField(exist = false)
    Static statics;

}
